package com.android.cl.coludtf.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.android.cl.coludtf.model.BaseBO;
import com.android.cl.coludtf.service.asynctask.LoginTask;

public class LoginService extends Service {

    BaseBO bo;
    LoginTask task;

    public LoginService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        throw new UnsupportedOperationException("Not yet implemented");
    }


//    public JsonResult Login(Login login, String account, String psd) {
//        String token = "";
//        //登录成功，缓存账号和密码和token
//        SPUtils.put(SpKeys.ACCOUNT, account);
//        SPUtils.put(SpKeys.PASSWORD, psd);
//        SPUtils.put(SpKeys.TOKEN, token);
//        //跳转到主页面，并注销登录页面
//        startActivity(new Intent(login, Main.class));
//        login.finish();
//        return null;
//    }
}
